-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/urr #69
Feat/urr #69
Conversation
Hi @gab-arrobo & @thakurajayL Could you please help to review the PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few issues that need to be resolved such as apply gofmt
to pkg/pfcpsim/session/urr_ies.go
, add missing license/copyright headers to a couple files
Hi @gab-arrobo Do I need to do any enhancements for this PR? Many thanks. |
Hi @ianchen0119, I will try to review your PR in the coming days and will get back to you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ianchen0119, how did you test the changes/PR?
@ianchen0119, I just enabled some additional linters. Please rebase your PR. Thank you! |
Hi @gab-arrobo After the UPF gets started, the fuzzing can be enabled. We can use the command below to trigger the fuzzing, for example:
Furthermore, go-upf PR #33 is to fix the bug, reported by a community user, and it can be reproduced by the fuzzing. |
Hi @gab-arrobo Thank you. |
Thanks for your input/update. I am going to try it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good to me.
Hello, Thanks for the suggestion! @gab-arrobo These were what I did in the latest commit:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get a chance to test this PR (i haven't tried pfcpsim yet) and i walkthrough the changes from coding perspective and it looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 (Run a test using UPF w/ OnRamp)
} | ||
} | ||
} | ||
|
||
func (c *PFCPClient) ConnectN4(remoteAddr string) error { | ||
func (c *PFCPClient) ConnectN4(ctx context.Context, remoteAddr string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ianchen0119, why do you need to add context to this function? Does not it already have context when the NewPFCPClient
is created/called (https://github.com/omec-project/pfcpsim/blob/main/pkg/pfcpsim/pfcpsim.go#L112)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's used for receiveFromN4()
.
pfcpsim/pkg/pfcpsim/pfcpsim.go
Line 235 in 2f3579b
go c.receiveFromN4(ctx) |
And receiveFromN4()
:
pfcpsim/pkg/pfcpsim/pfcpsim.go
Line 169 in 2f3579b
func (c *PFCPClient) receiveFromN4(ctx context.Context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I Just created the PR to fix it: #74
go test
.